package org.jeecg.modules.demo.yanhao.service.impl;

import org.jeecg.modules.demo.yanhao.entity.Evaluate;
import org.jeecg.modules.demo.yanhao.entity.YhBasic;
import org.jeecg.modules.demo.yanhao.mapper.EvaluateMapper;
import org.jeecg.modules.demo.yanhao.mapper.YhBasicMapper;
import org.jeecg.modules.demo.yanhao.service.IEvaluateService;
import org.jeecg.modules.demo.yanhao.service.IYhBasicService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 评价
 * @Author: jeecg-boot
 * @Date:   2020-09-17
 * @Version: V1.0
 */
@Service
public class EvaluateServiceImpl extends ServiceImpl<EvaluateMapper, Evaluate> implements IEvaluateService {
	
	@Autowired
	private EvaluateMapper evaluateMapper;
	@Autowired
	private YhBasicMapper yhBasicMapper;
	
	@Override
	public List<Evaluate> selectByMainId(String mainId) {
		YhBasic yhBasic = yhBasicMapper.selectById(mainId);
		return evaluateMapper.selectByWangwang(yhBasic.getWangwang());
	}
}
